package widget.common.tools
{
	import flash.utils.ByteArray;
	
	public class XMLAsset extends ByteArray
	{
		private var _xml:XML;
		
		public function get xml():XML
		{
			if (!_xml)
			{
				position = 0;
				_xml = new XML(readUTFBytes(bytesAvailable));
			}
			return _xml;
		}
	}
	
}